#include <Path.h>
Inheritance diagram for Path:

Public Member Functions | |
| Path () | |
| Path (string pathname, float scale) | |
| void | draw (osg::ref_ptr< osg::Group > root, int animationFlag=-1) |
| void | deletePart () |
| osg::Vec3 | calculateCatmull (osg::Vec3 first, osg::Vec3 second, osg::Vec3 third, osg::Vec3 fourth, double fifth) |
| void | setPoints (double number=1.0) |
| osg::Node * | displayLines (void) |
| osg::Node * | displayDots (void) |
| void | addNewPoint (osg::Vec3 first, double number=1.0) |
| osg::Vec3 * | getControlPointVector () |
| osg::Vec3 * | getPointVector () |
| double * | getRotationArray () |
| void | setRotationArray () |
| double | returnAngle (osg::Vec3d first, osg::Vec3d second) |
Private Attributes | |
| osg::Vec3 | controlPointArray [MAXCONTROLPOINTS] |
| osg::Vec3 | pointArray [MAXPOINTS] |
| double | rotationArray [MAXPOINTS] |
| int | numControlPoints |
| int | numPoints |
| int | controlPointsIndex |
| int | rotationArrayIndex |
| osg::Geode * | lineGeode |
| osg::Geometry * | lineGeom |
| osg::Geode * | dotGeode |
| osg::Geometry * | dotGeom |
| osg::Group * | lineGroup |
| osg::Group * | dotGroup |
Definition at line 4 of file Path.h.
|
|
A constructor. default constructor. Definition at line 2 of file Path.cpp. References controlPointsIndex, dotGeode, dotGeom, dotGroup, lineGeode, lineGeom, lineGroup, numControlPoints, numPoints, and rotationArrayIndex. |
|
||||||||||||
|
A constructor.
Definition at line 14 of file Path.cpp. References controlPointsIndex, dotGeode, dotGeom, dotGroup, lineGeode, lineGeom, lineGroup, numControlPoints, numPoints, and rotationArrayIndex. |
|
||||||||||||
|
a normal member taking two arguments .
Definition at line 153 of file Path.cpp. References controlPointArray, displayDots(), displayLines(), numControlPoints, and setPoints(). Referenced by AnimationWindow::createControlPoints(). |
|
||||||||||||||||||||||||
|
a normal member .
Definition at line 30 of file Path.cpp. Referenced by setPoints(). |
|
|
a normal member . removes dotGroup and lineGroup from teh root. Definition at line 170 of file Path.cpp. References controlPointsIndex, dotGeode, dotGeom, dotGroup, lineGeode, lineGeom, lineGroup, numControlPoints, numPoints, and rotationArrayIndex. Referenced by Vehicle::deletePath(). |
|
|
a normal member .
Definition at line 121 of file Path.cpp. References dotGeode, dotGeom, numPoints, and pointArray. Referenced by addNewPoint(). |
|
|
a normal member .
Definition at line 85 of file Path.cpp. References lineGeode, lineGeom, numPoints, and pointArray. Referenced by addNewPoint(). |
|
||||||||||||
|
a normal member taking two arguments.
Implements TraffEduObject. Definition at line 162 of file Path.cpp. References TraffEduObject::addTree(), dotGeode, dotGroup, lineGeode, lineGroup, and TraffEduObject::objectPAT. Referenced by Vehicle::drawPath(). |
|
|
a normal member .
Definition at line 192 of file Path.cpp. References controlPointArray. |
|
|
a normal member .
Definition at line 195 of file Path.cpp. References pointArray. Referenced by createAnimationPath(), and CarPhysics::mySetPosition(). |
|
|
a normal member .
Definition at line 198 of file Path.cpp. References rotationArray. Referenced by createAnimationPath(). |
|
||||||||||||
|
a normal member .
Definition at line 244 of file Path.cpp. Referenced by setRotationArray(). |
|
|
a normal member .
Definition at line 47 of file Path.cpp. References calculateCatmull(), controlPointArray, controlPointsIndex, numControlPoints, numPoints, and pointArray. Referenced by addNewPoint(). |
|
|
a normal member . calls returnAngle for each successive point of the path, and constructs rotation array. Definition at line 201 of file Path.cpp. References numPoints, pointArray, returnAngle(), rotationArray, and rotationArrayIndex. Referenced by AnimationWindow::createRotationArray(). |
|
|
Definition at line 7 of file Path.h. Referenced by addNewPoint(), getControlPointVector(), and setPoints(). |
|
|
Definition at line 12 of file Path.h. Referenced by deletePart(), Path(), and setPoints(). |
|
|
Definition at line 16 of file Path.h. Referenced by deletePart(), displayDots(), draw(), and Path(). |
|
|
Definition at line 17 of file Path.h. Referenced by deletePart(), displayDots(), and Path(). |
|
|
Definition at line 19 of file Path.h. Referenced by deletePart(), draw(), and Path(). |
|
|
Definition at line 14 of file Path.h. Referenced by deletePart(), displayLines(), draw(), and Path(). |
|
|
Definition at line 15 of file Path.h. Referenced by deletePart(), displayLines(), and Path(). |
|
|
Definition at line 18 of file Path.h. Referenced by deletePart(), draw(), and Path(). |
|
|
Definition at line 10 of file Path.h. Referenced by addNewPoint(), deletePart(), Path(), and setPoints(). |
|
|
Definition at line 11 of file Path.h. Referenced by deletePart(), displayDots(), displayLines(), Path(), setPoints(), and setRotationArray(). |
|
|
Definition at line 8 of file Path.h. Referenced by displayDots(), displayLines(), getPointVector(), setPoints(), and setRotationArray(). |
|
|
Definition at line 9 of file Path.h. Referenced by getRotationArray(), and setRotationArray(). |
|
|
Definition at line 13 of file Path.h. Referenced by deletePart(), Path(), and setRotationArray(). |
1.4.6-NO